#!/bin/bash
if [ -n "$2" ]
then
	do_date=$2
else
	#echo 必须给我传一个日期
	#exit
	do_date= $(date -d yesterday +%F) 
fi

echo 当前要操作的日期是$do_date


dws_trade_province_order_nd="

"


dws_trade_user_sku_order_nd="

"


case $1 in
    "dws_trade_province_order_nd" )
        hive --database gmall -e "$dws_trade_province_order_nd"
    ;;
    "dws_trade_user_sku_order_nd" )
        hive --database gmall -e "$dws_trade_user_sku_order_nd"
    ;;
    "all" )
        hive --database gmall -e "$dws_trade_province_order_nd$dws_trade_user_sku_order_nd"
    ;;
esac
